#include<stdio.h>
#include<stdlib.h>

struct node
{
	int val;
	struct node *next;
}*new;

struct node *first='NULL';

print()
{
	struct node *p;
	for(p=first;p!='NULL';p=p->next)
{
	printf(" %d ",p->val);
}
}


append()
{
	struct node *first='NULL';
	struct node *new=malloc(sizeof(struct node));
	printf("enter a number");
	scanf("%d",&new->val);

	new->next=first;

	print();  
}



main()
{
	int a;
	for(;;)
{
	printf("enter a value\n");
	printf("1.Append\n");
	scanf("%d",&a);

	switch(a)
{
	case(1):
		append();
		break;
}
return 0;
}
}

		
